package com.skeleton.db.entity;

import com.skeleton.db.dto.BlogCommentDto;
import com.skeleton.utils.SystemTools;

public class BlogComment {

	private int comment_id;
	private String loginname;
	private String blog_id;
	private String content;
	private int create_dttm;
	private String create_ip;
	private char status;

	public BlogCommentDto toDto() {
		BlogCommentDto dto = new BlogCommentDto();
		dto.setCommentId(comment_id);
		dto.setLoginname(loginname);
		dto.setBlogId(blog_id);
		dto.setCommentContent(content);
		dto.setCommentCreateDttm(create_dttm);
		dto.setCommentCreateDttmStr(SystemTools.formatDTTM(SystemTools.convertIntToDTTM(create_dttm)));
		dto.setCommentCreateIp(create_ip);
		dto.setCommentStatus(status);
		return dto;
	}

	public int getComment_id() {
		return comment_id;
	}

	public void setComment_id(int comment_id) {
		this.comment_id = comment_id;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getBlog_id() {
		return blog_id;
	}

	public void setBlog_id(String blog_id) {
		this.blog_id = blog_id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getCreate_dttm() {
		return create_dttm;
	}

	public void setCreate_dttm(int create_dttm) {
		this.create_dttm = create_dttm;
	}

	public String getCreate_ip() {
		return create_ip;
	}

	public void setCreate_ip(String create_ip) {
		this.create_ip = create_ip;
	}

	public char getStatus() {
		return status;
	}

	public void setStatus(char status) {
		this.status = status;
	}

}
